import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const RESULT: AppRouteRecordRaw = {
  path: 'sys-config',
  name: 'sys-config',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.sys-config',
    icon: 'icon-check-circle',
    requiresAuth: true,
    order: 5,
  },
  children: [
    {
      path: 'general',
      name: 'general',
      component: () => import('@/views/sys-config/general/index.vue'),
      meta: {
        locale: 'menu.sys-config.general',
        requiresAuth: true,
        roles: ['admin'],
        hideInMenu: true,
      },
    },
    {
      path: 'tenant',
      name: 'tenant',
      component: () => import('@/views/sys-config/tenant/index.vue'),
      meta: {
        locale: 'menu.sys-config.tenant',
        requiresAuth: true,
        roles: ['admin'],
        hideInMenu: true,
      },
    },
    {
      path: 'lang',
      name: 'lang',
      component: () => import('@/views/sys-config/lang/index.vue'),
      meta: {
        locale: 'menu.sys-config.lang',
        requiresAuth: true,
        roles: ['admin'],
        hideInMenu: true,
      },
    },
    {
      path: 'client',
      name: 'client',
      component: () => import('@/views/sys-config/client/index.vue'),
      meta: {
        locale: 'menu.sys-config.app',
        requiresAuth: true,
        roles: ['admin'],
        hideInMenu: true,
      },
    },
  ],
};

export default RESULT;
